package com.tr.otel;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import lombok.Data;

@SuppressWarnings("serial")
@ManagedBean
@SessionScoped
@Data
public class Oturum implements Serializable{

	private boolean girisYapildi;
	private String kullaniciAdi;
	
	public void giris(){
		girisYapildi = true;
	}
	
	public void cikis(){
		girisYapildi = false;
		kullaniciAdi = null;
	}
	
}
